package com.example.design.c.factoryMethod;

/**
 * 工厂方法模式
 */
public class TestFactory {

    public static void main(String[] args) {
        FactoryAnimal factoryCat=new FactoryCat();
        factoryCat.getAnima().show();

        FactoryAnimal factoryDog=new FactoryDog();
        factoryDog.getAnima().show();
    }
}
